import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询作品列表
export function listVote(query) {
  return request({
    url: '/vote/limit',
    method: 'get',
    params: query
  })
}

// 查询单个用户信息
export function getVote(id) {
  return request({
    url: '/vote/limit?id=' + parseStrEmpty(id),
    method: 'get'
  })
}
// 修改用户信息
export function updateVoteById(data) {
  return request({
    url: '/vote/UpdateVote',
    method: 'post',
    data: data
  })
}

export function delVote(id) {
  return request({
    url: '/vote/deleteVote?id='+id,
    method: 'GET',
  })
}


